package ${packageName}.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.big.common.mybatis.base.domain.entity.FlagBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.v3.oas.annotations.media.Schema;
<#if hasDate>
import java.time.LocalDateTime;
</#if>
<#if hasBigDecimal>
import java.math.BigDecimal;
</#if>

/**
 * <p>
 * ${tableComment!}
 * </p>
 *
 * @author ${author!}
 * @create ${createTime!}
 */
@Data
@TableName("${tableName}")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "${tableComment!}")
public class ${className} extends FlagBaseEntity {

<#list columns as column>
<#if !column.isPrimaryKey && column.columnName != 'create_time' && column.columnName != 'update_time' && column.columnName != 'create_by' && column.columnName != 'update_by' && column.columnName != 'flag'>
    /**
     * ${column.comment!}
     */
<#if column.columnName != column.javaField>
    @TableField("${column.columnName}")
</#if>
    private ${column.javaType} ${column.javaField};

</#if>
</#list>
}